# -*- coding: utf-8 -*-
from django.contrib import admin
from page.models import Page, Categoria

class PageAdmin(admin.ModelAdmin):
    list_display = ('titulo', 'categoria', 'nome')
    list_filter = ('categoria',)
    search_fields = ('titulo', 'categoria',)

    class Media:
        js = ('/static/tinymce/jscripts/tiny_mce/tiny_mce.js', '/static/tinymce_setup/tinymce_setup.js',)
        

admin.site.register(Page,PageAdmin)
admin.site.register(Categoria)

